package com.wiscamp.ninechapters.problems.infrastructure.mappers.challenges;

import com.wiscamp.ninechapters.problems.infrastructure.po.challenges.AmcStatisticPO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface AmcStatisticMapper extends JpaRepository<AmcStatisticPO, Long> {

    @Query(value = "select e from AmcStatisticPO e where e.examId = :examId and e.examYear = :year and e.abPaper = :abPaper")
    AmcStatisticPO findAmcStatistic(long examId, int year, String abPaper);
}